package cn.fcq.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    private Integer pageSize=5;
    private Integer currentPage=1;
    private String keyword;//关键字查询

    /**
     * 计算每页的起始位置
     */
    public Integer getStart(){
        return (this.currentPage-1) * this.pageSize;
    }

}
